const express = require('express')
const users = express.Router()
const {getUsers,postUsers,postAddUser,postUpdateUser,postDeleteUser} = require('../../service/users/userService')

//获取用户所有信息
users.get('/',getUsers)
//查询用户
users.post('/',postUsers)
//添加用户
users.post('/add',postAddUser)
//修改用户信息
users.post('/update',postUpdateUser)

//删除用户
users.post('/delete',postDeleteUser)
module.exports = users